#include<stdio.h>
#include<unistd.h>


int main()
{

    int c=0;

    c+=20;

    int id=fork();

    if(id==0)
    {
        printf("c:%d\n",c);
        printf("i am subprocess pid:%d,ppid:%d\n",getpid(),getppid());
    }
    else 
    {
        printf("c:%d\n",c);
        printf("i am fatherprocess pid:%d,ppid:%d\n",getpid(),getppid());
    }

    while(1);

    return 0;
}
